package com.ljx.recruitment.user.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Arrays;
import java.util.Map;
import java.util.stream.Collectors;

/**
 * @Author: LiJunXi
 * @Description:
 * @Date: 2024-11-16  11:13
 */
@Getter
@AllArgsConstructor
public enum ImageKeyEnum {

    HOME_COVER("home_cover", "", "主页背景图"),
    CAMPUS_COVER("campus_cover", "", "校招背景图"),
    SOCIAL_COVER("social_cover", "", "社招背景图"),
    LOGIN_COVER("login_cover", "", "登录背景图"),
    PROJECT_ICON("project_cover", "", "站点图标");

    private String key;
    private String value;
    private String desc;

    private static Map<String, String> cache;

    static {
        cache = Arrays.stream(ImageKeyEnum.values()).collect(Collectors.toMap(ImageKeyEnum::getKey, ImageKeyEnum::getValue));
    }

    public static Map<String, String> getCacheMap(){
        return cache;
    }

}
